package com.atguigu.mybatis.mappers;

import com.atguigu.mybatis.bean.Employee;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by Smexy on 2022/9/6
 *
 *  Dao ，Mapper
 */
public interface EmployeePlusMapper
{
    //一套增删改查   也需要去全局的配置中注册
    @Select(" select * from tbl_employee where id = #{empId}")
    Employee getEmployeeById(Integer id);

    void insertEmployee(Employee employee);

    void deleteEmployeeById(Integer id);

    void updateEmployee(Employee employee);

    List<Employee> getAll();

}
